import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 护士信息
 */
@Entity('nurse_info')
export class NurseInfoEntity extends BaseEntity {
  @Column({ comment: '姓名' })
  name: string;

  @Index({ unique: true })
  @Column({ comment: '工号' })
  workNo: string;

  @Column({ comment: '标签',type:'json'})
  workLabel:any

  @Column({ comment: '性别', dict: ['未知', '男', '女'], default: 0 })
  gender: number;

  @Index({ unique: true })
  @Column({ comment: '手机号', nullable: true })
  phone: string;

  @Column({ comment: '入职日期' })
  entryDate: Date;

  @Column({ comment: '照片', nullable: true })
  photo: string;

  @Column({ comment: '备注', nullable: true })
  remark: string;

  @Column({ comment: 'comment:状态 0-空闲 1-服务中 2-已离职',default: 0 })
  status: number;
  
}
